public class MyAccount{
    private final Account account;
    public MyAccount(){
       account = [Select id,name from Account where id = :ApexPages.currentPage().getParameters().get('id')];
       }
    public Account getAccount(){
       return account;
       }
    public PageReference save(){
        update account;
        return null;
        }
        }